<?php
session_start();

include ('lib/database.php');
include ('lib/categories.php');
include ('lib/products.php');
include ('lib/companies.php');
include ('lib/packaging.php');

if(isset($_POST['submitlogout']))
{
	unset($_SESSION['logged'], $_SESSION['login']);
}

if(!isset($_GET['page']))
{
    $page = 'categories';	
}
else
{
    $page = addslashes(strip_tags(trim($_GET['page'])));
}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="style/style.css" />
<?php include("js/verify.php"); ?>
<title>Склад</title>
</head>
<body>
	<div id="header">
		<?php require ('blocks/header.php'); ?>
	</div>
	<div id="content">
		<?php require ('pages/'.$page.'.php');?>
	</div>
	<div id="footer">
		<?php require ('blocks/footer.php'); ?>
	</div> 
</body>
</html>